FROM mysql:5.7.9

# Add the content of the sql-scripts/ directory to your image
# All scripts in docker-entrypoint-initdb.d/ are automatically
# executed during container startup
COPY ./init_database.sql /docker-entrypoint-initdb.d/
RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone
RUN chmod a+x /docker-entrypoint-initdb.d/init_database.sql